<!DOCTYPE html>
 <html lang="en" class="is-centered is-bold">
 <head>
     <meta charset="UTF-8">
     <title>零基础</title>
     <link href="__STATIC__/css/bootstrap.css" rel="stylesheet">
 </head>
 <body>
 <div class="container">
     <div class="col-sm-offset-2 col-sm-8">
         <div class="panel panel-default">
             <div class="panel-heading">
                 图书列表 
				<a href="add.html">
                    <button class="btn btn-primary add" style="margin-left: 20px">新增</button>
                </a>				 
              </div>
             <div class="panel-body">
                 <table class="table table-striped task-table">
                     <thead>
                         <tr>
                             <th>ID</th>
                             <th>图书名称</th>
                             <th>分类</th>
                             <th>价格</th>
                             <th>出版日期</th>
                             <th>操作</th>
                         </tr>
                     </thead>
                     <tbody>
                     {volist name='data' id='list'}
                     <tr>
                             <td class="table-text">
                                 {$list.id}
                             </td>
                             <td class="table-text">
                                 {$list.name}
                             </td>
                             <td class="table-text">
                                 {$list.category}
                             </td>
                             <td class="table-text">
                                 {$list.price}
                             </td>
                             <td>{$list.publish_time}</td>
                             <td>
                                  <a href='edit.html?id={$list.id}'>
                                    <button class="btn btn-info edit">编辑</button>
								  </a>
                                  <a href="delete?id={$list.id}">
                                    <button class="btn btn-danger delete">删除</button>
								  </a>
                             </td>
                         </tr>
                     {/volist}
                     </tbody>
                 </table>
				 <p class="text-primary text-center ">共计{$number}条</p>
             </div>
         </div>
     </div>
 </div>
 </body>
</html>